<?php
/**
 * User:于小涛
 * Date:2020/3/18
 * Time:9:51
 */
namespace app\api\validate\user;

use think\Validate;

class User extends Validate{
    protected $rule=[
        'account'=>'require',
        'password'=>'require',
    ];

    protected $message=[
        'account'=>'账号不能够为空',
        'password'=>'密码不能够为空',
    ];

    protected $scene = [
        'login'  =>  ['account','password'],
    ];
}